import React from 'react'
import {Routers} from './router/router.js'
import { ConfigProvider } from 'antd'
import 'moment/locale/zh-cn';
import locale from 'antd/es/locale/zh_CN';
import moment from "moment";
import {PersistGate} from 'redux-persist/lib/integration/react';
import {persistor} from './redux/store';
import store from './redux/store';
moment.locale("zh-cn", {
    week: {
        dow: 7
    }
});

class App extends React.Component {

	render() {
		return(
			
			<div className="App">
                <ConfigProvider store={store} locale={locale} autoInsertSpaceInButton={ false }>
                    <PersistGate loading={null} persistor={persistor}>
                        <Routers />
                    </PersistGate>
                </ConfigProvider>
                {/* <Provider store={store}>
                    <PersistGate loading={null} persistor={persistor}>
                        <Routers />
                    </PersistGate>
                </Provider>     */}
			</div>
			
		)
	}
}

export default App;